package com.zerui.manager.web.cmd;

import com.alibaba.cola.dto.PageQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @Author wh
 * @create_time 2023-05-31 11:00
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class AccessAuthDeviceQryCmd extends PageQuery {

	@ApiModelProperty("设备源 1：IoT 2：ICC")
	private Integer deviceFrom;

	@ApiModelProperty(value="设备名称")
	private String name;

	@ApiModelProperty(value="所属产品")
	private String type;

	@ApiModelProperty(value="是否关联")
	private Boolean isRelated;

	@ApiModelProperty(value="门禁授权id")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@NotNull(message = "门禁授权id不能为空")
	private Long accessAuthId;

}
